package compilers.exceptions;

public class SemanticalException extends Exception {
	
	private int fLineNr;
	private String fErrorMessage;

	public SemanticalException(String errorMessage, int lineNr) {
		fErrorMessage = errorMessage;
		fLineNr = lineNr;
	}
	
	public String getMessage() {
		return "[ERROR] Semantical error at line " + fLineNr + ": " + fErrorMessage;
	}
}
